package gcb.metalsys.service.cop;

import gcb.metalsys.entity.cop.CopWarehouse;
import com.baomidou.mybatisplus.extension.service.IService;
import gcb.metalsys.entity.cop.ProTransfer;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2020-07-15
 */
public interface CopWarehouseService extends IService<CopWarehouse> {

    public List<CopWarehouse> countTableListMonthOutById(Long departmentId);
    public List<CopWarehouse> getPieListById(Long departmentId);

    public boolean warehouseTransfer(ProTransfer proTransfer);

    public boolean plusWarehouse(Long productId,Long userId,int number);

    public boolean subtractWarehouse(Long productId,Long userId,int number);
}
